package com.masterclient.app.modules.order.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.masterclient.app.R;

/**
 * @auther hjian
 * @date 2020/9/23.
 */
public class OrderFlowAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public OrderFlowAdapter() {
        super(R.layout.item_order_flow);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {

        helper.setVisible(R.id.item_order_flow_line_top,helper.getAdapterPosition()!=0)
                .setImageResource(R.id.item_order_flow_icon, helper.getAdapterPosition() == 0
                        ?R.mipmap.order_logistics_icon_selected:R.mipmap.order_logistics_icon_default)
                ;
    }
}
